var yargs = require('yargs');
var drakov = require('drakov');
var watcher = require('drakov/lib/watcher');
const git = require('simple-git')('/opt/api/');

module.exports = {
	run: drakov.run,
	stop: drakov.stop,
	middleware: require('drakov/lib/middleware'),
	sync: function(user, token) {
	  git.addRemote('origin', 
	  	'git@'+user+':'+token+
	  	'@gitlab05.dtdream.com:deg-account/account-reference.git');
	  git.pull();
	}
}
